/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;

/**
 * <p>Project: app2022 - EnumTest
 * <p>Powered by webrx On 2022-02-09 10:47:56
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class EnumTest {
    public static void main(String[] args) {
        var 年龄 = 25;
        System.out.println(年龄);

        for (RetentionPolicy v : RetentionPolicy.values()) {
            System.out.println(v);
        }

        for (ElementType value : ElementType.values()) {
            System.out.println(value);
        }

        //Addr add = Addr.天津;
        //System.out.println(add);

        for (Addr value : Addr.values()) {
            System.out.println(value);
        }

        Addr zz = Addr.valueOf("开封");
        System.out.println(zz);

    }
}
